package com.etb.wisdom.eframe.org.service;

import java.util.List;

import com.etb.core.pojo.DataObject;
import com.etb.web.eui.tree.TreeNode;
import com.etb.wisdom.eframe.model.OrgOrganization;


public interface OrgOrganizationService {
	
	public static final String TREENODEID_ROOT = "root";
	
	public static final String TREENODENAME_ROOT = "机构员工树";
	
	public static final String TREENODETYPE_ROOT = "root";
	
	public static final String TREENODETYPE_ORGANIZATION = "org";
	
	public static final String TREENODETYPE_POSITION = "position";
	
	public static final String TREENODETYPE_EMPLOYEE = "emp";
	
	public List<OrgOrganization> query(DataObject dataObject, String... args);
	
	public List queryAll(String... args);
	
	public List<TreeNode> getTreenode(String id, String nodeType);
	
	public void save(OrgOrganization org);
	
	public void saveRole(String orgId, String addRoleIds, String delRoleIds);

}
